﻿using FreedomX2.Core.Transport.WebProvider.Cassini;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FreedomX2.Core.Transport.WebProvider.EsWebService
{
    public class EsWebServiceServer
    {
        private EsWebServiceServer() { }
        private Server _server { get; set; }
        public static EsWebServiceServer CreateWebService(int port, string virtualPath, string physicalPath)
        {
            Server s = new Server(port, virtualPath, physicalPath);
            return new EsWebServiceServer() { _server = s };
        }

        public void Start()
        {
            _server.Start();
        }

        public void Stop()
        {
            _server.Stop();
        }
    }
}
